avcodec/audio: make channel mapping array 0 terminated
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 5 Jul 2023 12:09:57 +0000 (15:09 +0300)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 21 Jan 2025 18:02:47 +0000 (19:02 +0100)
commit9519cf6175b0884b3230951fd24302072b0379a4
tree2e2982327e8de9fea0468f4828b07acf0d02b7cc
parent57d5be656442f6a4a0c9fa598edbb62b9c631b26
avcodec/audio: make channel mapping array 0 terminated

Also change pi_channels_src to be only AOUT_CHAN_MAX instead of same
size as mapping array.

(cherry picked from commit 0ff86bf8a28a080340f600cb8561815fc43e3b4a) (rebased)
rebased:
- the code around is slightly different

Gbp-Pq: Name 0090-avcodec-audio-make-channel-mapping-array-0-terminate.patch
modules/codec/avcodec/audio.c